<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	xMode = Request("xMode")
	showSubMenu = "60"
	
	isPerm = ""
	If Request.Cookies("S_level") = "05" then 
		isPerm = "none"
	End if
%>
<!-- #include virtual=/inc/header.inc.asp -->  

<BODY topmargin="0" leftmargin="0">
<!-- #include virtual=/inc/menu.inc.asp -->  

<!-- 검색 영역 시작 -->
<div style="text-align:left;margin-top:10px;">
<!-- #include virtual=/inc/subMenu.inc.asp --> 
<table border="0" cellpadding="0" cellspacing="0" width="1237" style="margin-left:5px;">
	<tr height="40">
		<td style="padding: 0px 0 0px 10px;background-image:url(/inc/layout/panel-title-light-bg.gif);font-weight:bold;text-align:left" width="100%" class="lTD_trbl"> &nbsp; 
			발주오더No <input type="text" id="findOrderNo" class="inputBox" style="width:100px;"> &nbsp; 
			거래처 <input type="text" id="findCompany" class="inputBox" style="width:100px;"> &nbsp; 
			자재코드 <input type="text" id="findPrdCd" class="inputBox" style="width:100px;"> &nbsp; 
			품목명 <input type="text" id="findPrdNm" class="inputBox" style="width:100px;"> &nbsp;
			<input type="button" onClick="grid01List()" value="검 색" class="inputBtn">&nbsp;
			<input type="button" onClick="fnSearchReset()" value="Reset" class="inputBtn">
		</td>
	</tr>
</table>
</div>
<!-- 검색 영역 끝 -->


<br>

<!-- 그리드 시작 -->
<div style="text-align:left">
<table border="0" cellpadding="0" cellspacing="0" width="1235" style="margin-left:5px;text-align:left">
	<tr>
		<td width="100%" class="lTD_trbl" valign="top" style="padding: 5px 5px 5px 5px;">
			<table border="0" cellpadding="0" cellspacing="0" width="600">
				<tr height="24">
					<td style="padding: 0 0 0 0;text-align:left" width="300"><div><input type="text" class="subTitle" style="width:80px;" value="오더관리" ReadOnly>&nbsp;<a href="javascript:grid01List()">[새로고침]</a> &nbsp;</div> </td>
					<td style="padding: 0 20 0 0;" align="right" width="300"><B>Total :</B> <span id="grid01Cnt" style="font-weight:bold">0</span></td>
				</tr>
			</table>
			<table border="0" cellpadding="0" cellspacing="0" width="600"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
			<div class="tblContainer" id="gridLayer01" style="width:600px; height:600px; overflow-y:scroll">
			<form name="frmGrid01">
			<table border="0" id="Grid01" width="583" cellpadding="0" cellspacing="0">
				<thead>
				<tr bgcolor="#EEECE7" height="25" align="center">
					<td width="60" class="lTD_0rbl gridTitle">오더No.</td>
					<td width="200" class="lTD_0rb0 gridTitle">회사명</td>
					<td width="80" class="lTD_0rb0 gridTitle">담당자</td>
					<td width="80" class="lTD_0rb0 gridTitle">발주오더No</td>
					<td width="83" class="lTD_0rb0 gridTitle">일자</td>
					<td width="50" class="lTD_0rb0 gridTitle">유효</td>
				</tr>
				<tr id="tr01Result" bgcolor="#FFFFFF" height="25" align="center">
					<td colspan="7" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan1" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
				</tr>
				</thead>
				<tbody></tbody>
			</table>
			</form>
			</div>
			<table border="0" width="600" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left" colspan="6" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr align="center" height="30">
								<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv01"></span></td>
							</tr>									
						</table>
					</td>
				</tr>
			</table>
		</td>
		<td valign="top" style="text-align:center; padding-left:5px">					
			<table border="0" cellpadding="0" cellspacing="0" width="620">
				<form name="frmOrder">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="610">
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								오더 &nbsp; &nbsp; No. : &nbsp;<input type="text" name="orderNo" id="orderNo" size="7" readonly="readonly"> &nbsp; &nbsp; &nbsp;
								거 &nbsp; 래 &nbsp; 처 :  &nbsp;<input type="text" name="compNm" id="compNm" size="22" class="inputBox" style="margin-left:4px" onblur="fnFindCompany(this.value,'','compCd')"> &nbsp;&nbsp; 
								<select name="compCd" id="compCd" style="width:150px"><option value="">--거래처--</option></select>
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								담 &nbsp; 당 &nbsp; 자 &nbsp;: &nbsp;<input type="text" name="major" id="major" size="15" class="specialBox"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
								연 &nbsp; 락 &nbsp; 처 &nbsp;: &nbsp;<input type="text" name="majorPhone" id="majorPhone" size="20" class="inputBox"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								발주 &nbsp; &nbsp;번호 : &nbsp;<input type="text" name="compOrderNo" id="compOrderNo" size="15" class="inputBox"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
								발주 &nbsp; &nbsp;구분 : &nbsp;<input type="text" name="orderType" id="orderType" size="10" class="inputBox"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								발주 &nbsp; &nbsp;일자 : &nbsp;<input type="text" name="orderDt" id="orderDt" class="inputBox" style="text-align:center;width:80px" onclick="Calendar_D(document.frmOrder.orderDt);" value="<%=Date()%>"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
								금 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;액 : &nbsp;<input type="text" name="totalPrice" id="totalPrice" size="15" class="inputBox" style="text-align:right;padding-right:2px" onKeyup="commify2(this)"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 7px 0 7px 30px; text-align:left; font-weight:bold">
								<textarea id="orderMemo" style="width:550px;height:100px;"></textarea>
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								<select name="flag" id="flag">
									<option value="Y">유효</option>
									<option value="N">무효</option>
								</select> &nbsp; &nbsp;<input type="text" id="accessInfo" style="font-weight:normal;width:380px; border:0px">
								<span>
								<input type="button" value="저장" class="inputBtn" onClick="fnSave()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnReset()">
								</span>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
				</form>
			</table>			
			<table border="0" cellpadding="0" cellspacing="0" width="620" style="margin-top:5px">
				<form name="frmOrderArticle">
				<input type="hidden" name="seq" id="seq">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="610">
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								자재 &nbsp; &nbsp;코드 : &nbsp;<input type="text" name="compPrdCd" id="compPrdCd" size="15" class="specialBox"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
								품 &nbsp; 목 &nbsp; 명 &nbsp;: &nbsp;<input type="text" name="compPrdNm" id="compPrdNm" size="30" class="inputBox"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								규 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;격 : &nbsp;<input type="text" name="compPrdSize" id="compPrdSize" size="40" class="inputBox"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
								수 &nbsp; &nbsp; 량  : &nbsp;<input type="text" name="amount" id="amount" size="11" class="inputBox" style="text-align:right;padding-right:2px" onKeyup="commify2(this)"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								단 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;가 : &nbsp;<input type="text" name="unitPrice" id="unitPrice" size="15" class="inputBox" style="text-align:right;padding-right:2px" onKeyup="commify2(this)" onBlur="fnGetOrderTotal()"> &nbsp; &nbsp; 
								금 &nbsp; &nbsp; &nbsp; 액 : &nbsp;<input type="text" name="articlePrice" id="articlePrice" size="15" class="inputBox" style="text-align:right;padding-right:2px" onKeyup="commify2(this)"> &nbsp; &nbsp;
								납 &nbsp; 기 &nbsp; 일 : &nbsp;<input type="text" name="dueDt" id="dueDt" style="text-align:center;width:80px" onclick="Calendar_D(document.frmOrderArticle.dueDt);" value="<%=Date()%>">
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								<select name="articleFlag" id="articleFlag">
									<option value="Y">유효</option>
									<option value="E">완료</option>
									<option value="N">무효</option>
								</select> &nbsp; &nbsp;<input type="text" id="accessInfo" style="font-weight:normal;width:380px; border:0px">
								<span>
								<input type="button" value="저장" class="inputBtn" onClick="fnSaveArticle()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnResetArticle()">
								</span>
							</td>
						</tr>
					</table>
					<table border="0" cellpadding="0" cellspacing="0" width="600" style="margin-top:10px">
						<tr height="24">
							<td style="padding: 0 0 0 0;text-align:left" width="300"><div><input type="text" class="subTitle" style="width:80px;" value="품목" ReadOnly>&nbsp;<a href="javascript:grid02List()">[새로고침]</a> &nbsp;</div> </td>
							<td style="padding: 0 20 0 0;" align="right" width="300"><B>Total :</B> <span id="grid02Cnt" style="font-weight:bold">0</span></td>
						</tr>
					</table>
					<table border="0" cellpadding="0" cellspacing="0" width="600"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
					<div class="tblContainer" id="gridLayer02" style="width:600px; height:190px; overflow-y:scroll">
					<form name="frmGrid02">
					<table border="0" id="Grid02" width="583" cellpadding="0" cellspacing="0">
						<thead>
						<tr bgcolor="#EEECE7" height="25" align="center">
							<td width="40" class="lTD_0rbl gridTitle">No.</td>
							<td width="90" class="lTD_0rb0 gridTitle">자재코드</td>
							<td width="150" class="lTD_0rb0 gridTitle">품목명</td>
							<td width="70" class="lTD_0rb0 gridTitle">수량</td>
							<td width="103" class="lTD_0rb0 gridTitle">금액</td>
							<td width="80" class="lTD_0rb0 gridTitle">납기일</td>
							<td width="50" class="lTD_0rb0 gridTitle">유효</td>
						</tr>
						<tr id="tr02Result" bgcolor="#FFFFFF" height="25" align="center">
							<td colspan="7" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan2" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
						</tr>
						</thead>
						<tbody></tbody>
					</table>
					</form>
					</div>
					<table border="0" width="600" cellpadding="0" cellspacing="0">
						<tr>
							<td align="left" colspan="6" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
								<table width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr align="center" height="25">
										<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv02"></span></td>
									</tr>									
								</table>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
				</form>
			</table>
		</td>		
	</tr>
</table>
</div>
<!-- 그리그 끝 -->

<script language="javascript">
	setMainMenu();
	fnCommonInit();
//	//## 테스트를 위한 기본 값세팅	
//	$("#prdNm").val("연습00");
//	$("#etcPrdCd").val("TEST01-00");
//	$("#remarks").val("연습중\r\nThis is testing....");
</script>
</BODY>
</HTML>